var regEx = {
	username: /^[a-zA-Z0-9]{5,20}$/,
	password : /^(.){6,20}$/,
	captcha : /^\d{4}$/
};
function ajaxUtil(url,params,loding_img,dataType,method,callMethod){
	if(params){
		params.req_type='ajax';
	}else{
		params={req_type:'ajax'};
	}
	if(loding_img)
		loding_img.show();
	$.ajax({
		type: method,
        data : params,
        dataType: dataType,
        url: url,
		complete :function(){
			if(loding_img)
				loding_img.hide();
		},
		success : function(data){
			if(data){
				if(data.status){
					if(data.redirectionUrl){
						if(data.message)
							window.alert(data.message);
						window.location.href = data.redirectionUrl;
						return false;
					}
				}
				callMethod(data);
			}else{
				window.parent.parent.parent.location.href = login_url;
			}
		}
	});	
}

function getlogininfo(){
	ajaxUtil(site_root+'/front/getlogininfo.htm',null,null,'json','get',getlogininfoCallback);
}

function getlogininfoCallback(data){
	if(data.memberIsLogin==1){
		$('#nologin_title').hide();
		$('#loginMember_uid').val(data.memberId);
		$('#loginMember_name').html(data.memberName);
		$('#loginMember_pointb').html(data.memberPointb);
		$('#loginMember_beat').html(data.memberBeat);
		$('#loginMember_pointc').html(data.memberPointc);
		$('#login_title').show();
	}
	//如果某些静态页面需要在获取用户信息后修改其他部分，只需要实现“afterLoginInfoDo”方法即可
	if(window.afterLoginInfoDo){
		afterLoginInfoDo();
	}else{
		alert(window.afterLoginInfoDo);
	}
}

function loginCheck(){
	var login_username = $('#login_username');
	var login_password = $('#login_password');
	var login_captcha = $('#login_captcha');
	if(!regEx.username.test(login_username.val())){
		window.alert('用户名格式错误，长度为5-20位字母或数字');
		login_username.select();
		return false;
	}
	if(!regEx.password.test(login_password.val())){
		window.alert('密码格式错误，长度为6-20位个字符');
		login_password.select();
		return false;
	}
	if(!regEx.captcha.test(login_captcha.val())){
		window.alert('验证码格式错误，长度为4个数字');
		login_captcha.select();
		return false;
	}
	return true;
}

function resetcode(){
	var url=site_root+'/captcha.vsl?t='+new Date().getTime();
	$('#validatecode').attr('src',url);
}

function loginCallback(data){
	if(data.status == 'error'){
		window.alert(data.message);
		resetcode();
		return false;
	}
	window.location.href=window.location.href; 
}

//登录弹出框
function Login_Dialog(){
	asyncbox.open({
		title:'会员登录',
		width: 400,
		height:240,
		modal : true,
		btnsbar : [{
     		text    : '登&nbsp;&nbsp;&nbsp;录',
      		action  : 'ok'
  		}].concat($.btn.CANCEL),
  		callback : function(action){
			if(action == 'ok'){
				if(loginCheck()){
					ajaxUtil(site_root+'/front/userlogin.htm',
						{'username':$('#login_username').val(),'j_captcha':$('#login_captcha').val(),'password':$('#login_password').val()},
						null,'json','post',loginCallback
					);
				}
				return false;
			}
  		},
　　　	html : '<div align="center" valign="middle" style="width:100%;height:100px;"><table><tr><td>用户名:</td><td><input id="login_username" name="username" style="height:20px;width:160px;"/></td></tr><tr><td>密&nbsp;&nbsp;&nbsp;码:</td><td><input id="login_password" name="password" type="password" style="height:20px;width:160px;"/></td></tr><tr><td>验证码:</td><td><input id="login_captcha" name="j_captcha" style="height:20px;width:80px;" maxlength="4"/> <img id="validatecode" align="absmiddle" style="cursor: pointer;width:70px;" title="更换验证码" src='+site_root+'"/captcha.vsl" onclick="resetcode();"/></td></tr></table></div>'
	});
}
// 充值
function Charge_Dialog(){
	asyncbox.open({
		title:'为您的账户充值',
		width: 600,
		height:400,
		modal : true,
		url:'http://www.baidu.com'
	});
}
//超时提示
function time_wran(){
	asyncbox.alert('访问超时，请刷新页面后重试!');
}
//获取当前URL指定的参数
function GetQueryString(name)
{
	var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	var r = window.location.search.substr(1).match(reg);
	if (r!=null)
	{	
		return unescape(r[2]);
	}
	return null;
}
//根据当前时间生成随即数
function rand(number)
{
    rnd.today=new Date();
    rnd.seed=rnd.today.getTime();
    function rnd()
    {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
    };
    return Math.ceil(rnd()*number);
};
function showLocale(objD)
{
	var str,colorhead,colorfoot;
	var yy = objD.getYear();
	if(yy<1900) yy = yy+1900;
	var MM = objD.getMonth()+1;
	if(MM<10) MM = '0' + MM;
	var dd = objD.getDate();
	if(dd<10) dd = '0' + dd;
	var hh = objD.getHours();
	if(hh<10) hh = '0' + hh;
	var mm = objD.getMinutes();
	if(mm<10) mm = '0' + mm;
	var ss = objD.getSeconds();
	if(ss<10) ss = '0' + ss;
	var ww = objD.getDay();
	if  ( ww==0 )  colorhead="<font color=\"#000000\">";
	if  ( ww > 0 && ww < 6 )  colorhead="<font color=\"#000000\">";
	if  ( ww==6 )  colorhead="<font color=\"#000000\">";
	if  (ww==0)  ww="星期日";
	if  (ww==1)  ww="星期一";
	if  (ww==2)  ww="星期二";
	if  (ww==3)  ww="星期三";
	if  (ww==4)  ww="星期四";
	if  (ww==5)  ww="星期五";
	if  (ww==6)  ww="星期六";
	colorfoot="</font>"
	str = colorhead + yy + "-" + MM + "-" + dd + " " + hh + ":" + mm + ":" + ss + "  " + ww + colorfoot;
	return(str);
}
function tick()
{
	var today;
	today = new Date();
	document.getElementById("localtime").innerHTML = showLocale(today);
	window.setTimeout("tick()", 1000);
}
function trim(str) {   
    return str.replace(/(^\s*)|(\s*$)/g, "");
}
var Wi = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 ];// 加权因子   
var ValideCode = [ 1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2 ];// 身份证验证位值.10代表X   
function IdCardValidate(idCard) {
	idCard = trim(idCard.replace(/ /g, ""));
	if (idCard.length == 15) {
		return isValidityBrithBy15IdCard(idCard);
	} else if (idCard.length == 18) {
		var a_idCard = idCard.split("");// 得到身份证数组   
		if (isValidityBrithBy18IdCard(idCard)
				&& isTrueValidateCodeBy18IdCard(a_idCard)) {
			return true;
		} else {
			return false;
		}
	} else {
		return false;
	}
}
function isTrueValidateCodeBy18IdCard(a_idCard) {   
    var sum = 0; // 声明加权求和变量   
    if (a_idCard[17].toLowerCase() == 'x') {   
        a_idCard[17] = 10;// 将最后位为x的验证码替换为10方便后续操作   
    }
    for ( var i = 0; i < 17; i++) {   
        sum += Wi[i] * a_idCard[i];// 加权求和
    }   
    valCodePosition = sum % 11;// 得到验证码所位置   
    if (a_idCard[17] == ValideCode[valCodePosition]) {   
        return true;
    } else {   
        return false;
    }   
}   
function maleOrFemalByIdCard(idCard){   
    idCard = trim(idCard.replace(/ /g, ""));// 对身份证号码做处理。包括字符间有空格。   
    if(idCard.length==15){   
        if(idCard.substring(14,15)%2==0){   
            return 'female';   
        }else{   
            return 'male';   
        }   
    }else if(idCard.length ==18){   
        if(idCard.substring(14,17)%2==0){   
            return 'female';   
        }else{   
            return 'male';   
        }   
    }else{   
        return null;   
    }   
}   
function isValidityBrithBy18IdCard(idCard18){   
    var year =  idCard18.substring(6,10);   
    var month = idCard18.substring(10,12);   
    var day = idCard18.substring(12,14);   
    var temp_date = new Date(year,parseFloat(month)-1,parseFloat(day));   
    if(temp_date.getFullYear()!=parseFloat(year)   
          ||temp_date.getMonth()!=parseFloat(month)-1   
          ||temp_date.getDate()!=parseFloat(day)){   
            return false;   
    }else{   
        return true;   
    }   
}   
function isValidityBrithBy15IdCard(idCard15){   
      var year =  idCard15.substring(6,8);   
      var month = idCard15.substring(8,10);   
      var day = idCard15.substring(10,12);   
      var temp_date = new Date(year,parseFloat(month)-1,parseFloat(day));   
      if(temp_date.getYear()!=parseFloat(year)   
              ||temp_date.getMonth()!=parseFloat(month)-1   
              ||temp_date.getDate()!=parseFloat(day)){   
                return false;   
        }else{   
            return true;   
        }   
  }
function number2Dx(n) {
	if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))
	return "数据非法";
	var unit = "千百拾亿千百拾万千百拾元角分", str = "";
	n += "00";
	var p = n.indexOf('.');
	if (p >= 0)
	n = n.substring(0, p) + n.substr(p+1, 2);
	unit = unit.substr(unit.length - n.length);
	for (var i=0; i < n.length; i++)
	str += '零壹贰叁肆伍陆柒捌玖'.charAt(n.charAt(i)) + unit.charAt(i);
	return str.replace(/零(千|百|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
}
//主页图片滚动
$.fn.iFadeSlide=function(e){e=$.extend({high:"high",interval:5000,leaveTime:150,fadeOutTime:300,fadeInTime:300},e);var b=$(e.field||"#slide>a>img");var d=$(e.ico||"#ico");var a=0;var k=e.interval||3000;var i=e.leaveTime||150;var f=e.fadeOutTime||400;var o=e.fadeInTime||400;var g=null,n=null,h=null,l=null,m=null,j=null;var c="<ul>";j=b.size();b.each(function(p){c+="<li>"+(p+1)+"</li>"});c+="</ul>";d.append(c);m=function(p){b.filter(":visible").fadeOut(f,function(){b.eq(p).fadeIn(o);g.eq(p).addClass(e.high).siblings().removeClass(e.high)})};g=d.find("ul>li");g.first().addClass(e.high);g.hover(function(){clearInterval(h);a=g.index(this);hasIcoHighName=$(this).hasClass(e.high);n=setTimeout(function(){if(!hasIcoHighName){m(a)}},i)},function(){clearTimeout(n);h=setInterval(function(){a++;m(a);if(a==j){m(0);a=0}},k)}).eq(0).trigger("mouseleave");b.hover(function(){a=b.index(this);clearInterval(h)},function(){g.eq(a).trigger("mouseleave")})};$(function(){$(document).iFadeSlide();$(document).iFadeSlide({field:$("div#slide_b a"),ico:$("div.ico_b"),high:"high_b",interval:2000});$(document).iFadeSlide({field:$("div#slide_c img"),ico:$("div.ico_c"),fadeOutTime:100,fadeInTime:200});var f=30;var e=document.getElementById("textScrollArea");var d=document.getElementById("textScrollCon1");var c=document.getElementById("textScrollCon2");if(!c) return; c.innerHTML=d.innerHTML;function a(){if(c.offsetWidth-e.scrollLeft<=0){e.scrollLeft-=d.offsetWidth}else{e.scrollLeft++}}var b=setInterval(a,f);e.onmouseover=function(){clearInterval(b)};e.onmouseout=function(){b=setInterval(a,f)}});
//imgscroll
var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Object.extend=function(destination,source){for(var property in source){destination[property]=source[property]};return destination};var TransformView=Class.create();TransformView.prototype={initialize:function(container,slider,parameter,count,options){if(parameter<=0||count<=0)return;var oContainer=document.getElementById(container),oSlider=document.getElementById(slider),oThis=this;this.Index=0;this._timer=null;this._slider=oSlider;this._parameter=parameter;this._count=count||0;this._target=0;this.SetOptions(options);this.Up=!!this.options.Up;this.Step=Math.abs(this.options.Step);this.Time=Math.abs(this.options.Time);this.Auto=!!this.options.Auto;this.Pause=Math.abs(this.options.Pause);this.onStart=this.options.onStart;this.onFinish=this.options.onFinish;oContainer.style.overflow="hidden";oContainer.style.position="relative";oSlider.style.position="absolute";oSlider.style.top=oSlider.style.left=0},SetOptions:function(options){this.options={Up:true,Step:5,Time:5,Auto:true,Pause:2000,onStart:function(){},onFinish:function(){}};Object.extend(this.options,options||{})},Start:function(){if(this.Index<0){this.Index=this._count-1}else if(this.Index>=this._count){this.Index=0};this._target=-1*this._parameter*this.Index;this.onStart();this.Move()},Move:function(){clearTimeout(this._timer);var oThis=this,style=this.Up?"top":"left",iNow=parseInt(this._slider.style[style])||0,iStep=this.GetStep(this._target,iNow);if(iStep!=0){this._slider.style[style]=(iNow+iStep)+"px";this._timer=setTimeout(function(){oThis.Move()},this.Time)}else{this._slider.style[style]=this._target+"px";this.onFinish();if(this.Auto){this._timer=setTimeout(function(){oThis.Index++;oThis.Start()},this.Pause)}}},GetStep:function(iTarget,iNow){var iStep=(iTarget-iNow)/this.Step;if(iStep==0)return 0;if(Math.abs(iStep)<1)return(iStep>0?1:-1);return iStep},Stop:function(iTarget,iNow){clearTimeout(this._timer);this._slider.style[this.Up?"top":"left"]=this._target+"px"}};function Each(list,fun){for(var i=0,len=list.length;i<len;i++){fun(list[i],i)}};
//textscroll
function AutoScroll(obj){
	$(obj).find("ul:first").animate({
	marginTop:"-18px"
	},500,function(){
	$(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
	});
}
//tab 切换
function DisplayFun(obj)
{
	$('.wjst_title .displayFun').each(function(){
		if(obj==$(this).attr('id')){
			$(this).removeClass('common_button').removeClass('focus_button').addClass('focus_button');
			$('#'+$(this).attr('id')+'_c').css('display','block');
		}else{
			$(this).removeClass('common_button').removeClass('focus_button').addClass('common_button');
			$('#'+$(this).attr('id')+'_c').css('display','none');
		}
	});
}

function show(str)
{
	var objmyjp=document.getElementById("my_jp_con");
	var objhistory=document.getElementById("jp_history_con");
	var myjpdiv=document.getElementById("my_jp");
	var myhistory=document.getElementById("jp_history");
	if(str=="myjp")
	{
		objmyjp.style.display="block";
		objhistory.style.display="none";
		myjpdiv.className="my_jp";
		myhistory.className="jp_history";
	}
	if(str=="history")
	{
		objmyjp.style.display="none";
		objhistory.style.display="block";
		myjpdiv.className="jp_history";
		myhistory.className="my_jp";
	}
}

//日期插件开始
function HS_DateAdd(interval,number,date){
	number = parseInt(number);
	if (typeof(date)=="string"){var date = new Date(date.split("-")[0],date.split("-")[1],date.split("-")[2])}
	if (typeof(date)=="object"){var date = date}
	switch(interval){
	case "y":return new Date(date.getFullYear()+number,date.getMonth(),date.getDate()); break;
	case "m":return new Date(date.getFullYear(),date.getMonth()+number,checkDate(date.getFullYear(),date.getMonth()+number,date.getDate())); break;
	case "d":return new Date(date.getFullYear(),date.getMonth(),date.getDate()+number); break;
	case "w":return new Date(date.getFullYear(),date.getMonth(),7*number+date.getDate()); break;
	}
}
function checkDate(year,month,date){
	var enddate = ["31","28","31","30","31","30","31","31","30","31","30","31"];
	var returnDate = "";
	if (year%4==0){enddate[1]="29"}
	if (date>enddate[month]){returnDate = enddate[month]}else{returnDate = date}
	return returnDate;
}

function WeekDay(date){
	var theDate;
	if (typeof(date)=="string"){theDate = new Date(date.split("-")[0],date.split("-")[1],date.split("-")[2]);}
	if (typeof(date)=="object"){theDate = date}
	return theDate.getDay();
}
function HS_calender(){
	var lis = "";
	var style = "";
	/* http://www.codefans.net */
	style +="<style type='text/css'>";
	style +=".calender { width:170px; height:auto; font-size:12px; margin-right:14px; background:url(calenderbg.gif) no-repeat right center #fff; border:1px solid #397EAE; padding:1px}";
	style +=".calender ul {list-style-type:none; margin:0; padding:0;}";
	style +=".calender .day { background-color:#EDF5FF; height:20px;}";
	style +=".calender .day li,.calender .date li{ float:left; width:14%; height:20px; line-height:20px; text-align:center}";
	style +=".calender li a { text-decoration:none; font-family:Tahoma; font-size:11px; color:#333}";
	style +=".calender li a:hover { color:#f30; text-decoration:underline}";
	style +=".calender li a.hasArticle {font-weight:bold; color:#f60 !important}";
	style +=".lastMonthDate, .nextMonthDate {color:#bbb;font-size:11px}";
	style +=".selectThisYear a, .selectThisMonth a{text-decoration:none; margin:0 2px; color:#000; font-weight:bold}";
	style +=".calender .LastMonth, .calender .NextMonth{ text-decoration:none; color:#000; font-size:18px; font-weight:bold; line-height:16px;}";
	style +=".calender .LastMonth { float:left;}";
	style +=".calender .NextMonth { float:right;}";
	style +=".calenderBody {clear:both}";
	style +=".calenderTitle {text-align:center;height:20px; line-height:20px; clear:both}";
	style +=".today { background-color:#ffffaa;border:1px solid #f60; padding:2px}";
	style +=".today a { color:#f30; }";
	style +=".calenderBottom {clear:both; border-top:1px solid #ddd; padding: 3px 0; text-align:left}";
	style +=".calenderBottom a {text-decoration:none; margin:2px !important; font-weight:bold; color:#000}";
	style +=".calenderBottom a.closeCalender{float:right}";
	style +=".closeCalenderBox {float:right; border:1px solid #000; background:#fff; font-size:9px; width:11px; height:11px; line-height:11px; text-align:center;overflow:hidden; font-weight:normal !important}";
	style +="</style>";

	var now;
	if (typeof(arguments[0])=="string"){
		selectDate = arguments[0].split("-");
		var year = selectDate[0];
		var month = parseInt(selectDate[1])-1+"";
		var date = selectDate[2];
		now = new Date(year,month,date);
	}else if (typeof(arguments[0])=="object"){
		now = arguments[0];
	}
	var lastMonthEndDate = HS_DateAdd("d","-1",now.getFullYear()+"-"+now.getMonth()+"-01").getDate();
	var lastMonthDate = WeekDay(now.getFullYear()+"-"+now.getMonth()+"-01");
	var thisMonthLastDate = HS_DateAdd("d","-1",now.getFullYear()+"-"+(parseInt(now.getMonth())+1).toString()+"-01");
	var thisMonthEndDate = thisMonthLastDate.getDate();
	var thisMonthEndDay = thisMonthLastDate.getDay();
	var todayObj = new Date();
	today = todayObj.getFullYear()+"-"+todayObj.getMonth()+"-"+todayObj.getDate();
	
	for (i=0; i<lastMonthDate; i++){  // Last Month's Date
		lis = "<li class='lastMonthDate'>"+lastMonthEndDate+"</li>" + lis;
		lastMonthEndDate--;
	}
	for (i=1; i<=thisMonthEndDate; i++){ // Current Month's Date

		if(today == now.getFullYear()+"-"+now.getMonth()+"-"+i){
			var todayString = now.getFullYear()+"-"+(parseInt(now.getMonth())+1).toString()+"-"+i;
			lis += "<li><a href=javascript:void(0) class='today' onclick='_selectThisDay(this)' title='"+now.getFullYear()+"-"+(parseInt(now.getMonth())+1)+"-"+i+"'>"+i+"</a></li>";
		}else{
			lis += "<li><a href=javascript:void(0) onclick='_selectThisDay(this)' title='"+now.getFullYear()+"-"+(parseInt(now.getMonth())+1)+"-"+i+"'>"+i+"</a></li>";
		}
		
	}
	var j=1;
	for (i=thisMonthEndDay; i<6; i++){  // Next Month's Date
		lis += "<li class='nextMonthDate'>"+j+"</li>";
		j++;
	}
	lis += style;

	var CalenderTitle = "<a href='javascript:void(0)' class='NextMonth' onclick=HS_calender(HS_DateAdd('m',1,'"+now.getFullYear()+"-"+now.getMonth()+"-"+now.getDate()+"'),this) title='Next Month'>&raquo;</a>";
	CalenderTitle += "<a href='javascript:void(0)' class='LastMonth' onclick=HS_calender(HS_DateAdd('m',-1,'"+now.getFullYear()+"-"+now.getMonth()+"-"+now.getDate()+"'),this) title='Previous Month'>&laquo;</a>";
	CalenderTitle += "<span class='selectThisYear'><a href='javascript:void(0)' onclick='CalenderselectYear(this)' title='点此选择年份' >"+now.getFullYear()+"</a></span>年<span class='selectThisMonth'><a href='javascript:void(0)' onclick='CalenderselectMonth(this)' title='点此选择月份'>"+(parseInt(now.getMonth())+1).toString()+"</a></span>月"; 

	if (arguments.length>1){
		arguments[1].parentNode.parentNode.getElementsByTagName("ul")[1].innerHTML = lis;
		arguments[1].parentNode.innerHTML = CalenderTitle;

	}else{
		var CalenderBox = style+"<div class='calender'><div class='calenderTitle'>"+CalenderTitle+"</div><div class='calenderBody'><ul class='day'><li>日</li><li>一</li><li>二</li><li>三</li><li>四</li><li>五</li><li>六</li></ul><ul class='date' id='thisMonthDate'>"+lis+"</ul></div><div class='calenderBottom'><a href='javascript:void(0)' class='closeCalender' onclick='closeCalender(this)'>×</a><span><span><a href=javascript:void(0) onclick='_selectThisDay(this)' title='"+todayString+"'>Today</a></span></span></div></div>";
		return CalenderBox;
	}
}
function _selectThisDay(d){
	var newdate=new Date();
	var boxObj = d.parentNode.parentNode.parentNode.parentNode.parentNode;
		boxObj.targetObj.value = d.title+' '+newdate.getHours()+':'+newdate.getMinutes()+':'+newdate.getSeconds();
		boxObj.parentNode.removeChild(boxObj);
}
function closeCalender(d){
	var boxObj = d.parentNode.parentNode.parentNode;
		boxObj.parentNode.removeChild(boxObj);
}

function CalenderselectYear(obj){
		var opt = "";
		var thisYear = obj.innerHTML;
		for (i=1970; i<=2020; i++){
			if (i==thisYear){
				opt += "<option value="+i+" selected>"+i+"</option>";
			}else{
				opt += "<option value="+i+">"+i+"</option>";
			}
		}
		opt = "<select onblur='selectThisYear(this)' onchange='selectThisYear(this)' style='font-size:11px'>"+opt+"</select>";
		obj.parentNode.innerHTML = opt;
}

function selectThisYear(obj){
	HS_calender(obj.value+"-"+obj.parentNode.parentNode.getElementsByTagName("span")[1].getElementsByTagName("a")[0].innerHTML+"-1",obj.parentNode);
}

function CalenderselectMonth(obj){
		var opt = "";
		var thisMonth = obj.innerHTML;
		for (i=1; i<=12; i++){
			if (i==thisMonth){
				opt += "<option value="+i+" selected>"+i+"</option>";
			}else{
				opt += "<option value="+i+">"+i+"</option>";
			}
		}
		opt = "<select onblur='selectThisMonth(this)' onchange='selectThisMonth(this)' style='font-size:11px'>"+opt+"</select>";
		obj.parentNode.innerHTML = opt;
}
function selectThisMonth(obj){
	HS_calender(obj.parentNode.parentNode.getElementsByTagName("span")[0].getElementsByTagName("a")[0].innerHTML+"-"+obj.value+"-1",obj.parentNode);
}
function HS_setDate(inputObj){
	var calenderObj = document.createElement("span");
	calenderObj.innerHTML = HS_calender(new Date());
	calenderObj.style.position = "absolute";
	calenderObj.targetObj = inputObj;
	inputObj.parentNode.insertBefore(calenderObj,inputObj.nextSibling);
}
//日期插件结束